import request from '@/utils/request'
// 下载门店二维码
export function downloadQrCode(data) {
  return request({
    url: '/biz/store/downloadQrCode',
    method: 'post',
    data: data
  })
}
// 分类树
export function getCategoryTree(query) {
  return request({
    url: '/biz/storeCategory/getTree',
    method: 'get',
    params: query
  })
}
// 查询biz_门店管理列表
export function listStore(query) {
  return request({
    url: '/biz/store/list',
    method: 'get',
    params: query
  })
}

// 查询biz_门店管理详细
export function getStore(id) {
  return request({
    url: '/biz/store/' + id,
    method: 'get'
  })
}

// 新增biz_门店管理
export function addStore(data) {
  return request({
    url: '/biz/store',
    method: 'post',
    data: data
  })
}

// 修改biz_门店管理
export function updateStore(data) {
  return request({
    url: '/biz/store',
    method: 'put',
    data: data
  })
}

// 删除biz_门店管理
export function delStore(id) {
  return request({
    url: '/biz/store/' + id,
    method: 'delete'
  })
}
